package com.dbh.io.nio;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * nioClient
 *
 * @author dongbanghui
 * @date 2020/10/9
 */
public class NIOClient {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("localhost", 83);
        OutputStream out = socket.getOutputStream();
        String s = "hello world";
        out.write(s.getBytes());
        out.close();
    }

}
